/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.businesslogic;

import java.util.Collection;
import ticketmaster.dao.DAOFactory;
import ticketmaster.dataobject.EventView;

/**
 *
 * @author Wei Liu
 */
public class SearchController
{
    public Collection<EventView> simpleSearch(EventView event)
    {
        event.setCancelled(false);
        return DAOFactory.getInstance().getEventViewDAO().getEventsDOByName(event);
    }

    public Collection<EventView> advancedSearch(EventView event)
    {
        event.setCancelled(false);
        return DAOFactory.getInstance().getEventViewDAO().getEventsDO(event);
    }
}
